package com.hollysys.hollimsa.common.config;

import io.fabric8.kubernetes.client.DefaultKubernetesClient;
import io.fabric8.kubernetes.client.KubernetesClient;
import me.snowdrop.istio.client.DefaultIstioClient;
import me.snowdrop.istio.client.IstioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * istio客户端
 * @author wangyuxi
 * @date 2020/06/10
 **/
@Configuration
public class IstioConfiguration {

    @Bean
    IstioClient istioClient() {
        return new DefaultIstioClient();
    }

    @Bean
    KubernetesClient k8sClient() {
        return new DefaultKubernetesClient();
    }
}
